package ldh.im.handle;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;

public class ExceptionInHandler extends ChannelInboundHandlerAdapter {

//    private static final Logger LOGGER = LoggerFactory.getLogger(ExceptionInHandler.class);

    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
//        LOGGER.error("系统错误", cause);
        ctx.channel().close();
    }
}
